package com.zhkj.txg.module.home.entity

import com.chad.library.adapter.base.entity.node.BaseNode
import com.google.gson.annotations.SerializedName
import com.zhkj.lib.http.BaseResponse

data class MallCategoryResponse(
    val data: MallCategoryEntity? = null
) : BaseResponse()

data class MallCategoryEntity(
    val banner: MutableList<BannerEntity> = mutableListOf(),
    @SerializedName("top_shops")
    val topShop: MutableList<MallShopEntity> = mutableListOf(),
    val shops: MutableList<MallCategoryShopEntity> = mutableListOf(),
    val goods: MutableList<SearchProductEntity> = mutableListOf()
) {
    var hasMore = true
    var loadMore = false
}

data class MallCategoryShopEntity(
    val id: Int,
    @SerializedName("shop_name")
    val shopName: String = "",
    @SerializedName("shop_img")
    val shopImg: String = ""
) : BaseNode() {
    override val childNode: MutableList<BaseNode>? = null
}